const num = 45; // 十进制
console.log(num.toString(2), typeof num.toString(2),
    parseInt(num.toString(2)), Number(num.toString(2)), +num.toString(2));
console.log(num.toString(8), num.toString(16));